<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <link type="text/css" href="styles/base/ui.all.css" rel="stylesheet" />
    <style type="text/css" media="screen">
        @import url("styles/gb.css");
		@import url("styles/autocomplete/jquery.autocomplete.css");
    </style>
    <script type="text/javascript" src="scripts/jquery.min.js "></script>
    <script type="text/javascript" src="scripts/jquery.parsequery.js" ></script>
    <script type="text/javascript" src="scripts/jquery-jtemplates.js"></script>
    <script type="text/javascript" src="scripts/jquery.corner.js"></script>
    <script type="text/javascript" src="scripts/ui/jquery-ui-1.7.2.custom.js"></script>
    <script type="text/javascript" src="scripts/ui/ui.datepicker.js"></script>
    <script type="text/javascript" src="scripts/flowplayer/flowplayer-3.1.1.min.js"></script>
    <script type="text/javascript" src="scripts/date.js"></script>
	<script type="text/javascript" src="scripts/jquery.autocomplete.min.js"></script>
	<script type="text/javascript" src="scripts/navigation.js"></script>
    <script type="text/javascript" src="scripts/jquery.easing.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.lavalamp.min.js"></script>
	<script>
        var query_vars;
		var db_name;
        $(function() {

           $('#content').corner();
           query_vars = $.parseQuery();
		   db_name = findDBName();
           $.getJSON("/"+db_name+"/_design/project/_view/by_project/?callback=?", function(data){
    			// attach the template
			$("#list_table").setTemplateElement("list_table_template");
			
			// process the template
			$("#list_table").processTemplate(data);
           });
        })
    </script>
  </head>
  <body class="primary-4">
	<div id="header"></div>
  
    <div id="content" data-corner="left right 20px">
	   <div id="list_table" class="jTemplatesTest"></div>
    </div>
	<!-- Template content (Valid XHTML 1.1) -->
	<p style="display: none;"><textarea id="list_table_template" rows="0" cols="0">
		<table>
			{#foreach $T.rows as row}
                        <tr>
                            <td><a href="project.html?name={$T.row.key}">{$T.row.key}</a></td>
                        </tr>
			{#/for}
		</table>
	</textarea></p>
    <!-- End Of template-->

  </body>
</html>
